package com.gitee.qdbp.base.settings.spring;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.AnnotationBeanNameGenerator;

/**
 * 为避免命名冲突, 以类全名作为默认的BeanName<br>
 * &lt;context:component-scan base-package="..." name-generator="com...SimpleBeanNameGenerator" /&gt;
 *
 * @author zhaohuihua
 * @version 170802
 */
public class SimpleBeanNameGenerator extends AnnotationBeanNameGenerator {

    @Override
    protected String buildDefaultBeanName(BeanDefinition definition) {
        return definition.getBeanClassName();
    }

}
